<?php

class Application_Model_Artist implements Zend_Paginator_Adapter_Interface {

    private $result;

    public function __construct($artist, $itemCountPerPage, $page) {
        $this->result = Lastfm_Artist::search($artist, $itemCountPerPage, $page);
    }

    public function getItems($offset, $itemCountPerPage) {
        return $this->result;
    }

    public function count() {
        return $this->result->getTotalResults();
    }

}

